<%-- 
    Document   : tablaBusquedaAlumno
    Created on : 03-ene-2012, 23:05:04
    Author     : CAPISTRAN
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="dto.Alumno"%>
<%@page import="persistencia.AlumnoDAO"%>
<%
String control=request.getParameter("numControl");    
Alumno alumno =new Alumno();
alumno.setControl(control);
AlumnoDAO m=new AlumnoDAO();
m.ConsultarAlumno(alumno);
%>
<!DOCTYPE html>
<html>
<body>
<h1 align="center">Datos De La Tabla Alumnos</h1>
<table border="1" align="center">
<tr>
<td>control</td>
<td>nombre</td>
<td>apellidoPaterno</td>
<td>apellidoMaterno</td>
<td>edad</td>
<td>semestre</td>
<td>idCarrera</td>
<td>direccion</td>
</tr>
<%
m.ConsultarAlumno(alumno);

   out.println("<tr>");
   out.println("<td>"+alumno.getControl()+"</td>");
   out.println("<td>"+alumno.getNombre()+"</td>");
   out.println("<td>"+alumno.getApellidoPaterno()+"</td>");
   out.println("<td>"+alumno.getApellidoMaterno()+"</td>");
   out.println("<td>"+alumno.getEdad()+"</td>");
   out.println("<td>"+alumno.getSemestre()+"</td>");
   out.println("<td>"+alumno.getIdCarrera()+"</td>");
   out.println("<td>"+alumno.getDireccion()+"</td>");
   out.println("</tr>");

%>
</table>
<br>
<p align="center">
<a href="http://localhost:8084/Training2-1.0-SNAPSHOT/index.jsp"  class="link2c2">Regresar a Pagina Principal</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://localhost:8084/Training2-1.0-SNAPSHOT/consulta.jsp"  class="link2c2">Realizar Nueva Consulta</a>
</p>
</br>
</body>
</html>
